import axios from '@/libs/api.request'
// 门店查询
export const getShopList = (data) => {
  return axios.request({
    url: '/sales/shop/list',
    method: 'post',
    data: data
  })
}
// 更新门店状态
export const shopStatusUpd = (data) => {
  return axios.request({
    url: '/sales/shop/status/update',
    method: 'post',
    data: data
  })
}
// 门店查询包含业务标签
export const getCountList = (data) => {
  return axios.request({
    url: '/sales/shop/count/list',
    method: 'post',
    data: data
  })
}
// 查询片区
export const getAreaList = (data) => {
  return axios.request({
    url: '/sales/org/area/list',
    method: 'post',
    data: data
  })
}
// 门店导出
export const exportShop = (data) => {
  return axios.request({
    url: '/oms/merchant/shop/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 导入校验
export const veriShopXls = data => axios.request({
  url: '/oms/merchant/shop/verify/file',
  method: 'post',
  data,
  headers: {
    'Content-Type': 'multipart/form-data'
  }
})
// 导入xls数据 /oms/merchant/org/import
export const shopXlsImport = data => axios.request({
  url: '/oms/merchant/org/import',
  method: 'post',
  data
})
